package com.ruoyi.web.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 *  @author 雨安
 *  类名： WechatPayNotification
 *  创建时间：2025/2/21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WechatPayNotification {
    @JsonProperty("id")
    private String id;

    @JsonProperty("create_time")
    private String createTime;

    @JsonProperty("resource_type")
    private String resourceType;

    @JsonProperty("event_type")
    private String eventType;

    @JsonProperty("summary")
    private String summary;

    @JsonProperty("resource")
    private Resource resource;
    // 内部嵌套的Resource类
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Resource {
        @JsonProperty("original_type")
        private String originalType;

        @JsonProperty("algorithm")
        private String algorithm;

        @JsonProperty("ciphertext")
        private String ciphertext;

        @JsonProperty("associated_data")
        private String associatedData;

        @JsonProperty("nonce")
        private String nonce;
    }
}